﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KylinORM.Utils;

namespace KylinORM.Aspect.Definition
{
    /// <summary>
    /// 实体信息
    /// </summary>
    public class EntityInfo : EntityAttribute, ICloneable<EntityInfo>
    {

        EntityInfo ICloneable<EntityInfo>.Clone()
        {
            return new EntityInfo
            {
                TableName = this.TableName,
                JoinMethod = ((ICloneable<EJoinMethod>)this.JoinMethod).Clone(),

                JoinTarget = this.JoinTarget
            };
        }

        object ICloneable.Clone()
        {
            return ((ICloneable<EntityInfo>)this).Clone();
        }
    }
}
